#!/bin/bash

USER=""
PASSWORD=""

echo "Enter commit log message:"
read MESSAGE

cd "`dirname "$0"`"
find schiero -type f   -regex ".*~"          | while read -r line; do rm "$line"       ; done
find schiero -type f ! -regex ".*[\\/^]\..*" | while read -r file; do unix2dos "$file" ; done
#module add prog/subversion
svn commit --username "$USER" --password "$PASSWORD" --message "$MESSAGE" schiero

echo "Done. Press enter"
read dummy

